// import（导入）导入less文件
// 把common.ss这个公共的css文件导入到index.less来
@import "common.less";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background-color: #f2f2f2;
    // height: 2000px;
}



// }页面元素rem计算公式：页面元素的px/html 字体大小50
// 顶部搜索框
// 变量 @basefont: 50; 利于维护修改
@basefont: 50;

.search-content {
    position: fixed;
    display: flex;
    width: 15rem;
    height: (88rem / @basefont);
    background-color: #ffc001;

    .classify {
        width: (44rem / @basefont);
        height: (70rem / @basefont);
        margin: (11rem / @basefont) (25rem / @basefont) (7rem / @basefont) (34rem / @basefont);
        background: url(../images/classify.png) no-repeat;
        background-size: (44rem / @basefont) (70rem / @basefont);
    }

    .search {
        flex: 1;

        input {
            border: 0;
            width: 100%;
            height: (66rem / @basefont);
            background-color: #fff2cc;
            border-radius: (33rem / @basefont);
            outline: none;
            margin-top: (12rem / @basefont);
            font-size: (25rem / @basefont);
            padding-left: (57rem / @basefont);
            color: #757575;
        }
    }

    .login {
        width: (75rem / @basefont);
        height: (70rem / @basefont);
        line-height: (70rem / @basefont);
        margin: (10rem / @basefont);
        font-size: (25rem / @basefont);
        text-align: center;
        color: #fff;
    }
}

// banner
.banner {
    height: (368rem / @basefont);

    img {
        width: 100%;
        height: 100%;
    }
}

.guanggao {
    display: flex;
    a {
        flex: 1;
        img {
            width: 100%;
        }
    }
}

.nav {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;

    a {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: (150rem / @basefont);
        height: (140rem / @basefont);
        text-align: center;

        img {
            width: (82rem / @basefont);
            height: (82rem / @basefont);
            margin: (10rem / @basefont) (34rem / @basefont) 0;
        }

        span {
            font-size: (25rem / @basefont);
            margin-top: (10rem / @basefont);
            color: #333333;
        }
    }
}